﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using RhotCMS.Models;

namespace RhotCMS.Controllers
{
    public class ManageController : Controller
    {       
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Settings()
        {
            return View(CMSSettingsRepository.GetAppSettings());
        }
        [HttpPost]
        public ActionResult Settings(SettingsModel model)
        {
            CMSSettingsRepository.SetAppSettings(model);
            return View(model);
        }
    }
}
